<?php
$css=base_url().'/application/views/templates/mobile/css';
$images=base_url().'/application/views/templates/mobile/images';
$js=base_url().'/application/views/templates/mobile/js';

$this->load->model('public_model');
$organizations0=array();
$organizations0 = $this->public_model->getOrganizationOption(1);
if(!$organizations0){
	$organizations0 = array(-1=>'Select');
}
$organizationId0=$this->session->userdata('OrganizationDefault');

?>
<!DOCTYPE html>
<html xml:lang="ko" xmlns="http://www.w3.org/1999/xhtml" lang="ko">
<head>
  	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi" name="viewport">
  	<meta name="apple-mobile-web-app-capable" content="yes" />																		
	<meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />	
			
	<link href="<?php echo $css ;?>/mobile.css" rel="stylesheet" type="text/css"   />
	
	<link href="<?=base_url()?>css/vzoom.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/apprise.css" rel="stylesheet" type="text/css" />	
	<link href="<?=base_url()?>css/datePicker.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/jquery-ui-1.8.8.custom.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/stickytooltip.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/jquery.multiSelect.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>css/sexy-combo.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>js/popup/js/style.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo $css ;?>/listnav.css" rel="stylesheet" type="text/css" />
	<link href="<?=base_url()?>js/mobiscroll-1.6/css/mobiscroll-1.6.min.css" rel="stylesheet" type="text/css" />
	<script> var p_seller_id = "<?=$seller_id?>";</script>
	<script src="<?=base_url()?>js/library/Queue.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/shoppingcart.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/ajax.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/json2.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/vzoom.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/javascript.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/lg_script.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/searchproduct.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/wishlist.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/search.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/product.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/order.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/maintainproduct.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.json-2.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/maintainproduct.js" type="text/javascript" charset="utf-8"></script>	
	<script src="<?=base_url()?>js/date.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/systemparameter.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.core.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.widget.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.autocomplete.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.dialog.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.position.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ui.tabs.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/vzoom.js" type="text/javascript" charset="utf-8"></script>	
	<script src="<?=base_url()?>js/apprise-1.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/report.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/tinymce/jscripts/tiny_mce/tiny_mce.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/emailtemplates.js" type="text/javascript" charset="utf-8"></script>	
	<script src="<?=base_url()?>js/adminlog.js" type="text/javascript" charset="utf-8"></script>	
	<script src="<?=base_url()?>js/library/stickytooltip.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/users.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/fundraiser.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.multiSelect.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.multiselect2side.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.sexy-combo.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/category.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/churches.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/school.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/thread.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/comment.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/popup/js/jquery.easing.1.3.js" type="text/javascript" charset="utf-8"></script>
<!--	<script src="<?=base_url()?>js/popup/js/alertbox.js" type="text/javascript" charset="utf-8"></script> -->
	<script src="<?=base_url()?>js/homepage.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/charitylogo.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/reportimport.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.ba-bbq.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/historypage.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/mobiscroll-1.6/js/mobiscroll-1.6.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.form.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?=base_url()?>js/library/jquery.blockUI.js" type="text/javascript" charset="utf-8"></script>
	

<script language="javascript" type="text/javascript">
</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2965081-21']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<title>
	<?php header('Content-Type: text/html; charset=utf-8');
	 echo (empty($title) ? "" : $title. " - ") . SITE_SLOGAN;?>
</title>
<style type="text/css">
.home{font-size: 8pt}
</style>
</head>

<body style="-webkit-text-size-adjust:none">
	<?php $this->load->library('cart'); ?>
	<input type="hidden" id="urldefault" name="urldefault" value="<?=$this->public_model->getBaseUrl()?>">
	<input type="hidden" id="normalurldefault" name="normalurldefault" value="<?=base_url()?>">
	<input type="hidden" id="cartItems" name="cartItems" value="<?=$this->cart->total_items()?>">
	<input type="hidden" id="homepage" name="homepage" value="<?=isset($homepage)?$homepage:null?>">
	<input type="hidden" id="autohideselectorg" value="true">	
	<input type="hidden" id="ismobile" name="ismobile" value="true">
<header>

<div id="divHeaderTop1" style="display:none;">
<h1>Online Fundraising for Schools, Charities and Churches </h1>
</div>

<div id="divHeaderTop2">
	<a href="<?=base_url()?>"><img  alt="givemart.org" src="<?=$images?>/logo1.png"></a>
	<ul>		
	    <?php
	    if(!empty($this->session->userdata['is_logged_in']) &&  $this->session->userdata['is_logged_in']==true){	    		
		?>
			<li style="font-size:11px;padding-right:5px;">Hello <?php echo $this->session->userdata['fullname'] ?></li>
			<li><a class="toplink" title="" href="<?=base_url()?>cart"><img src="<?=base_url()?>images/iconcart.jpg"/>&nbsp;<span id="spviewcart" name="spviewcart">Cart<?=$this->cart->total_items()==0?'':'('.$this->cart->total_items().')'?></span></a></li>
			<?php 
			if(modules::run('login/is_admin_logged_in') == false && modules::run('login/is_seller_logged_in') == false) 
			{
			?>
			<li class="lastLi"><a class="toplink" title="" href="<?=base_url()?>wishlist">Wish List</a></li>
			<?php }?>
		<?php
		}
		else
		{
		?>
			<li class="lastLi"><a class="toplink" title="" href="<?=base_url()?>cart"><img src="<?=base_url()?>images/iconcart.jpg"/>&nbsp;<span id="spviewcart" name="spviewcart">View Cart<?=$this->cart->total_items()==0?'':'('.$this->cart->total_items().')'?></span></a></li>
		<?php
		}
		?>	
		
	</ul>	
</div>

</header>

<section>
<div id="seachboxDiv">
<?= isset($search)?$search:null?>	
</div>
</section>

<section>
<div id="Content">
<?= isset($contents)?$contents:null ?>
</div>
</section>


<section>
<div id="Lnd">
	<div class="LeftTop">
		<h2>Browse by Category</h2>
	</div>
	
	<div class="LeftMenu">
		<?= isset($left)?$left:null?>
	</div>
	<div class="LeftBottom"></div>		
</div>
<section>
<footer>
<div id="footer">

<div id="footer1">
<ul>
	<li><a class="toplink" title="" href="<?=base_url()?>">Home</a></li>
	<?php
	    if(!empty($this->session->userdata['is_logged_in']) &&  $this->session->userdata['is_logged_in']==true){	    		
	?>
		<li><a class="toplink" href="<?=base_url()?>order/buyer">Order History</a> </li>
		<?if(modules::run('login/is_user_logged_in') ):?>
		<li><a class="toplink" href="<?=base_url()?>login/showBuyerProfile">Your account</a> </li>
		<?elseif (modules::run('login/is_seller_logged_in')):?>
		<li><a class="toplink" href="<?=base_url()?>login/showSellerProfile">Your account</a> </li>
		<?php else:?>
		<li><a class="toplink" href="<?=base_url()?>login/showChangePassword">Change password</a> </li>
		<?endif?>
		<li><a class="toplink" href="<?=base_url()?>login/logout">Log out</a> </li>	
	<?php
	}
	else
	{ 
	?>	
		<li><a class="toplink" title="" href="<?=base_url()?>login">Login</a></li>
		<li><a class="toplink" title="" href="<?=base_url()?>login/buyer_signup">Register</a></li>
		<!--<li><a class="toplink" href="<?=base_url()?>order/buyer_unreg">Order Status</a> </li>-->
	<?php
	}
	?>	
	<li><a class="toplink" href="<?=base_url()?>home/index/fullsize">View Full Site</a> </li>	
</ul>
</div>

<div id="footer2">
<ul>
	<li><a class="toplink" href="<?=base_url()?>info/aboutus">About Us</a> </li>
	<li><a class="toplink" href="<?=base_url()?>info/privacypolicy">Private Policy</a> </li>
	<li><a class="toplink" href="<?=base_url()?>info/allpolicies">All Policies</a> </li>
	<li><a class="toplink" href="<?=base_url()?>info/returnpolicies">Return Policies</a> </li>
	<li><a class="toplink" href="<?=base_url()?>info/contactus"> Contact Us</a> </li>	
</ul>
</div>
	
	<table border = 0 width = "100%">
		<tr>
			<td align = "right" width = "95%">
				<div id="footer4">
					<a href = "https://www.pcisecuritystandards.org" target="_blank"><img   src = "<?=$images?>/footer-logo-PCI.png"></a>
				</div>
			</td>
			<td align = "left" width = "5%">
				<div id="footer3">
					 <a href="http://www.abcv.com" target="_blank"> <img  alt="givemart.org" src="<?=$images?>/footer-logo-abcv.png"> </a> 
				</div>
			</td>
		</tr>
	</table>

</div>


</footer>	

</body>
</html>

